package com.jdrx.sw.sewage.beans.entity;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "药剂分析", description = "药剂分析")
@Data
public class MedicineAnalysisPO {
	private Long id;
	
	@ApiModelProperty(value = "药剂类型")
	private String categoryName;
	
	@ApiModelProperty(value = "关联点位")
	private String devPointValue;
	
	@ApiModelProperty(value = "加药时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime addTime;
	
	@ApiModelProperty(value = "上次加药时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime lastAddTime;
	
	@ApiModelProperty(value = "加药数量")
	private Double amount;
	
	@ApiModelProperty(value = "药剂单价")
	private Double price;
	
	@ApiModelProperty(value = "总价")
	private Double totalPrice;
	
	@ApiModelProperty(value = "AI加药数量")
	private Double aiAmount;
	
	@ApiModelProperty(value = "AI流量统计")
	private Double aiFlowStatistics;
	
	@ApiModelProperty(value = "AI单位药耗比")
	private Double aiConsumptionRatio;
	
	@ApiModelProperty(value = "记录员")
	private Long noteTaker;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createAt;
	
	private Long createBy;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateAt;
	
	private Long updateBy;
}